package com.lezhi.socialgram.model.lbs;

import javax.validation.constraints.NotNull;

/**
 * Created by daizhen on 2017/3/27.
 */
public class LbsCondition {
    @NotNull(message = "纬度不能为空")
    private Double lat;

    @NotNull(message = "经度不能为空")
    private Double lon;

    @NotNull(message = "用户id不能为空")
    private Long userId;

    private Integer page;

    private Integer sex;

    private Integer minAge;

    private Integer maxAge;

    private Integer maxDistance;

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getMinAge() {
        return minAge;
    }

    public void setMinAge(Integer minAge) {
        this.minAge = minAge;
    }

    public Integer getMaxAge() {
        return maxAge;
    }

    public void setMaxAge(Integer maxAge) {
        this.maxAge = maxAge;
    }

    public Integer getMaxDistance() {
        return maxDistance;
    }

    public void setMaxDistance(Integer maxDistance) {
        this.maxDistance = maxDistance;
    }

    @Override
    public String toString() {
        return "LbsCondition{" +
                "lat=" + lat +
                ", lon=" + lon +
                ", userId=" + userId +
                ", page=" + page +
                ", sex=" + sex +
                ", minAge=" + minAge +
                ", maxAge=" + maxAge +
                ", maxDistance=" + maxDistance +
                '}';
    }
}
